package com.zd.common.common.enums;

public enum UseTicketsStatusEnum {
	Have_a_refund(-1, "已退票"),
	To_be_paid(0, "待支付"),
	Already_paid(1, "已支付"),
	Already_used(2, "已使用");
	
	
	private int key;
	private String value;

	private UseTicketsStatusEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}

	public int getKey() {
		return key;
	}


	public void setKey(int key) {
		this.key = key;
	}


	public String getValue() {
		return value;
	}


	public void setValue(String value) {
		this.value = value;
	}


	public static UseTicketsStatusEnum get(int key) {
		for (UseTicketsStatusEnum useTicketsStatus : UseTicketsStatusEnum.values()) {
			if (useTicketsStatus.getKey() == key) {
				return useTicketsStatus;
			}
		}
		return null;
	}
}
